<template>
	<view class="container">
		<uni-card title="快递点信息" extra="工作人员信息" style="margin-top: 0px;" @click="call">
			<view class="" style="display: flex;align-items: center;">
				<image src="/static/tx.png" style="height: 70px;width: 70px;" mode=""></image>
				<view class="" style="margin-left: 10px;">张三</view>
			</view>
			<view class="item" style="margin-top: 5px;">地址：南湾街道厦村社区恒大国香山花园业委会</view>
			<view class="item" style="margin-top: 5px;">联系电话：12345678911</view>
		</uni-card>
		<uni-card style="margin-top: 10px;">
			<view class="" style="display: flex;align-items: center;margin-left: 8px;margin-bottom: 5px;">
				<view class="" style="height: 7px;width: 7px;border-radius: 7px;background-color: rgb(26, 173, 25);">
				</view>
				<view class="" style="font-size: 16px;margin-left: 5px;">裤子</view>
			</view>
			<uni-steps direction="column" :options="list" :active="3"></uni-steps>
		</uni-card>
		<button type="primary" @click="submit" style="margin-top: 20px;">扫码</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						title: '已发货',
						desc: '2023-03-05 13:55'
					}, {
						title: '已揽件',
						desc: '2023-03-06 13:55'
					}, {
						title: '待收货',
						desc: '2023-03-07 13:55'
					},
					{
						title: '已收货',
						desc: '2023-03-07 13:55'
					},
				]
			};
		},
		onLoad(item) {

		},
		onReady() {

		},
		onShow() {

		},
		methods: {
			call() {
				uni.makePhoneCall({
					phoneNumber: "12345678911"
				})
			},
			submit() {
				uni.scanCode({
					onlyFromCamera: true,
					success: (e) => {
						uni.showToast({
							title: '扫码成功',
							icon: 'none'
						});
					}
				})
			}
		}
	};
</script>

<style lang="scss">

</style>
